/**
 * Created by think on 2016/9/23.
 */
DPTLister.prototype.pagelen = 20;
DPTLister.prototype.fixedly = true;
DPTLister.prototype.landing = 135;
DPTLister.prototype.adapter = {
    'tx' : function(data) {
        data.length = data.pagelen;
        delete data.pagelen;
        data.start = (--data.pagenum) * data.length;
        delete data.pagenum;
        data.orderbyclause = data.sortway;
        delete data.sortway;
    },
    'rx' : function(data) {
        data.errcode = data.code;
        delete data.code;
        data.errmsg = data.msg;
        delete data.msg;
        data.total_count = data.recordsTotal;
        delete data.recordsTotal;
    }
};